Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix overflow in RFC8888 #164

Merged
merged 3 commits into from
Nov 9, 2023
Merged

Fix overflow in RFC8888 #164

merged 3 commits into from
Nov 9, 2023

Conversation

Sean-Der
Copy link
Member

@Sean-Der Sean-Der commented Nov 9, 2023

Use int instead of uint16. We assert that values on the wire can't be greater then math.MaxUint16, but when iterating we would overflow.

This changes everything to int and adds tests

Co-Authored-By: Juho Nurminen [email protected]

Sean-Der and others added 3 commits November 9, 2023 12:45
Use int instead of uint16. We assert that values on the wire can't be
greater then math.MaxUint16, but when iterating we would overflow.

This changes everything to int and adds tests

Co-Authored-By: Juho Nurminen <[email protected]>
Copy link

codecov bot commented Nov 9, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
rfc8888.go 68.02% <100.00%> (ø)

📢 Thoughts on this report? Let us know!

@Sean-Der Sean-Der merged commit 546aef8 into master Nov 9, 2023
14 of 16 checks passed
@Sean-Der Sean-Der deleted the rfc8888-overflow branch November 9, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant